package com.geek.javase.Interface;

/**
 * @author chenshupeng
 * @date 2025/9/3
 * @desc TODO
 **/

public class Airplane implements Fly {
    private String name;

    public Airplane() {
    }

    public Airplane(String name) {
        this.name = name;
    }

    @Override
    public void makeFly() {
        System.out.println(this.name+"起飞");
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    public String toString() {
        return "Airplane{name = " + name + "}";
    }
}
